package cn.etynit.order.service;

import cn.etynit.order.domain.OrderPetAcquisition;
import cn.etynit.basic.service.IBaseService;
import cn.etynit.order.dto.OrderConfirmDto;
import org.apache.rocketmq.client.exception.MQClientException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author etynit
 * @since 2022-11-01
 */
public interface IOrderPetAcquisitionService extends IBaseService<OrderPetAcquisition> {

    void confirm(OrderConfirmDto orderConfirmDto) throws MQClientException;

    void cancel(Long orderId);

    /**
     * 根据订单号查询订单
     * @param message
     * @return
     */
    OrderPetAcquisition findByOrderSn(Long message);
}
